package com.parking.order.model.form;

import com.parking.common.core.paracheck.GOODOKBAD;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户添加评论Form
 * */
@Data
@ApiModel("用户添加评论参数")
public class AddCommentForm {
    /**
     * 订单编号
     * */
    @NotBlank(message = "orderInfoNum不能为空")
    @Length(message = "orderInfoNum为19位", min = 19, max = 19)
    private String orderInfoNum;
    /**
     * 评论内容
     * */
    @NotBlank(message = "commentInfo不能为空")
    private String commentInfo;
    /**
     * 评论分数 "GOOD" "OK" "BAD"
     * */
    @NotNull(message = "commentScore不能为空")
    @GOODOKBAD(message = "commentScore只能是Good/Bad/OK")
    private String commentScore;
}
